package designpattern.composite;

/*
    专业
 */
public class Major extends OrganizationComponent{

    public Major(String name, String dec) {
        super(name, dec);
    }

    @Override
    public void print() {
        System.out.println("        专业名字:"+getName()+",专业描述:"+getDec());
    }
}
